﻿using System;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Student stu1 = new Student(1, "张三", '男', "1168001", 110, "法外狂徒", "二班");

            stu1.Stuinfo();

            teacher tea1 = new teacher(1, "李四", '男', "1008611", 120, "张三陪衬", 123);
            tea1.Teainfo();
        }
    }

}

class Person
{

    public string _major { get; set; }
    public int id { get; set; }
    public string name { get; set; }

    public char Sex { get; set; }
    public string Cardid { get; set; }
    public int Tel { get; set; }
    public string _grade { get; set; }

    public string _title { get; set; }
    public int _wageno { get; set; }


    public Person(int Id, string Name, char sex, string charid, int tel, string _Major, string _Grade)
    {
        this.id = Id;
        this.name = Name;
        this.Sex = sex;
        this.Cardid = charid;
        this.Tel = tel;
        this._major = _Major;
        this._grade = _Grade;
    }

    public Person(int Id, string Name, char sex, string charid, int tel, string _Title, int _Wageno)
    {
        this.id = Id;
        this.name = Name;
        this.Sex = sex;
        this.Cardid = charid;
        this.Tel = tel;
        this._title = _Title;
        this._wageno = _Wageno;
    }


    public void Stuinfo()
    {
        Console.WriteLine("我的编号是{0}，我的姓名是{1}，我的性别是{2}，我的身份证是{3}，我的手机号是{4}，我的专业是{5}，我的年级是{6}", this.id, this.name, this.Sex, this.Cardid, this.Tel, this._major, this._grade);
    }



    public void Teainfo()
    {

        Console.WriteLine("我的编号是{0}，我的姓名是{1}，我的性别是{2}，我的身份证是{3}，我的手机号是{4}，我的职称是{5}，我的工资是{6}", this.id, this.name, this.Sex, this.Cardid, this.Tel, this._title, this._wageno);

    }

}

class Student : Person
{

    public Student(int Id, string Name, char Sex, string charid, int tel, string _Major, string _Grade) : base(Id, Name, Sex, charid, tel, _Major, _Grade)
    {

    }

}

class teacher : Person
{

    public teacher(int Id, string Name, char Sex, string charid, int tel, string _Title, int _Wageno) : base(Id, Name, Sex, charid, tel, _Title, _Wageno)
    {

    }


}






